﻿using Volo.Abp.Guids;
using Volo.Abp.Modularity;

namespace Volo.Abp.EntityFrameworkCore.Dm
{
    [DependsOn(
      typeof(AbpEntityFrameworkCoreModule)
      )]
    public class AbpEntityFrameworkCoreDmModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpSequentialGuidGeneratorOptions>(options =>
            {
                if (options.DefaultSequentialGuidType == null)
                {
                    options.DefaultSequentialGuidType = SequentialGuidType.SequentialAsString;
                }
            });

            //Configure<AbpEfCoreGlobalFilterOptions>(options =>
            //{
            //    options.UseDbFunction = true;
            //});
        }
    }
}
